package com.example.web.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.web.entity.User;
import com.example.web.mapper.UserMapper;
import com.example.web.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	UserMapper userMapper;

	@Override
	public Integer save(User user) {
		return userMapper.save(user);
	}

	@Override
	public Integer remove(Integer id) {
		return userMapper.remove(id);
	}

	@Override
	public Integer change(User user) {
		return userMapper.change(user);
	}

	@Override
	public User getUser(Integer id) {
		return userMapper.getUser(id);
	}

	@Override
	public List<User> getList() {
		return userMapper.getList();
	}

}
